/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Controller;

/**
 *
 * @author Vegard
 */

import java.util.ArrayList;
import Module.*;

public class ControllerTest {
    public static void main(String[]args){

        Controller c = new Controller();
        Project project = new Project(1,"test","loltest","test");
        //c.getProject().editProject(project);
        Activity ac = new Activity();
        //c.getActivity().editActivity(ac);
        //c.getActivity().deleteActivity(ac);
        Session s = new Session();
        //c.getSession().editSession(s);
        //c.getSession().deleteSession(s);
        ActionList a = new ActionList(1,1,"endreListe","ferdig","vegard");
        //c.getActionlist().deleteActionList(a);
        //c.getActionlist().editActionList(a);
        DecisionList d = new DecisionList(1,1,"endeList", "ferdig", "vegard");
        //c.getDecisionlist().editDecisionList(d);
        //c.getDecisionlist().deletDecisionList(d);
        ChattLog ch = new ChattLog(1,1, "endrechattLog");
        //c.getChattlog().editChattLog(ch);
        //c.getChattlog().deleteChattLog(ch);
        Experience e = new Experience(1,1,"endreerfaring");
        //c.getExperience().deleteExperience(e);
        //c.getExperience().editExperience(e);
        //c.getPlanning().deletePlanning(p);
        //c.getPlanning().editPlanning(p);
        Role r = new Role(1,"Superbruker");
        User u = new User(1,"brukernavn","123");
        //c.getRole().registerRole(r);
        //c.getRole().editUser(r);
        ArrayList<User> users = new ArrayList<User>();
        users.add(u);
        //c.getProject().deleteUserstoProject(project);
        
        //c.getUser().editUser(u);
        
        c.getProject().registerProject(project);
        c.getActivity().registerActivity(ac);
        c.getSession().registerSession(s);
        c.getActionlist().registerActionList(a);
        c.getDecisionlist().registerDecisionList(d);
        c.getChattlog().registrerChattLog(ch);
        c.getExperience().registrerExperience(e);
        c.getUser().registerUser(u);
        //c.getProject().setUsersToProject(users, project);
        
        c.getProject().deleteProject(project);
    }

}
